<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<s:include value="/WEB-INF/content/common/header.jsp"></s:include>
</head>

<body class="bg">
	<s:include value="/WEB-INF/content/common/title-head.jsp"></s:include>

	<div class="content">
		<s:include value="/WEB-INF/content/common/tab.jsp"></s:include>
		<script>
			$("#systemUserTab").addClass("active");
		</script>
		<div class="body">
			<div class="row">
				<div class="span7">
					<div class="span10 title">
						<h2>
							<s:text name="page.heading.addnew" />
						</h2>
					</div>
					<div class="col-lg-10 col-lg-offset-1">
						<div>
							
							<s:form action="save" namespace="/systemUser" method="post"
								theme="simple" cssClass="form-horizontal">
								<s:hidden name="mode" />
								<s:hidden name="systemUser.id" />
								<div class="control-group">
									<s:actionmessage cssClass="alert alert-success"/>
								</div>
								<div class="control-group">
									<s:actionerror cssClass="alert alert-error" />
								</div>
								<div class="control-group">
									<label class="control-label"><s:text name="user.name" /></label>
									<div class="controls">
										<s:textfield name="systemUser.name" cssClass="form-control"
											placeholder="%{getText('user.system.name.placeholder')}"
											required="true" />
									</div>
								</div>
								<div class="control-group">
									<label class="control-label"><s:text name="user.email" /></label>
									<div class="controls">
										<s:textfield name="systemUser.email" cssClass="form-control"
											placeholder="%{getText('user.system.email.placeholder')}" />
									</div>
								</div>
								<div class="control-group">
									<label class="control-label"><s:text
											name="user.password" /></label>
									<div class="controls">
										<s:password name="systemUser.userPassword"
											cssClass="form-control"
											placeholder="%{getText('user.system.password.placeholder')}"
											showPassword="true" />
									</div>
								</div>
								<div class="control-group">
									<label class="control-label"><s:text name="user.type" /></label>
									<div class="controls">
										<s:select label="Select User Type" cssClass="form-control"
											name="systemUser.userType" headerKey="1"
											headerValue="-- Please Select --"
											list="@com.aios.entity.unit.UserType@values()"></s:select>
									</div>
								</div>

								<div class="form-actions">
									<s:submit cssClass="btn btn-primary"
										value="%{getText('global.submit')}" />
								</div>
							</s:form>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div id="footer">
		<s:include value="/WEB-INF/content/common/footer.jsp"></s:include>
	</div>
</body>
</html>